package orm.litchi.controller;

import orm.litchi.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


@RestController
@EnableAutoConfiguration
public class StudentController {

    @Autowired
    StudentService studentServiceImp;

     @RequestMapping("/getStudentList")
     @ResponseBody
     public List getStudent(){

         List data = studentServiceImp.getAllStudent();

         return  data;

     }
    
}
